package zhihuilan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import zhihuilan.entity.MyCircleDiscuss;
import zhihuilan.params.query.MyCircleDiscussQueryParam;

import java.util.List;

public interface MyCircleDiscussService {

    Page<MyCircleDiscuss> selectPageList(MyCircleDiscussQueryParam queryParam);

    List<MyCircleDiscuss> selectList(MyCircleDiscussQueryParam queryParam);

    Integer countRedDiscuss(MyCircleDiscuss myCircleDiscuss);
    MyCircleDiscuss getMyCircleDiscussOne(MyCircleDiscuss myCircleDiscuss);

    MyCircleDiscuss selectById(Integer id);

    /**
     * 获取评论数；
     * */
    Long selectCount(MyCircleDiscussQueryParam queryParam);

    MyCircleDiscuss addEntity(MyCircleDiscuss myCircleDiscuss);

    Boolean deletetById(Integer id);

    Boolean deletetByIdParam(Integer id, Integer staffId);

    Boolean updateReaded(Integer pid,Integer staffId,Integer pstaffid);
}
